import request from '@/utils/request'
export function list(params) {
  return request({
    url: '/admin/sysMch/list',
    method: 'get',
    params: params
  })
}
export function save(data, params) {
  return request({
    url: '/admin/sysMch/save',
    method: 'post',
    data: data,
    params: params
  })
}

export function del(ids) {
  return request({
    url: '/admin/sysMch/del/' + ids,
    method: 'post'
  })
}

export function find(id) {
  return request({
    url: '/admin/sysMch/find/' + id,
    method: 'get'
  })
}

export function resetPwd(id) {
  return request({
    url: '/admin/sysMch/resetPwd?id=' + id,
    method: 'post'
  })
}

export function getInfo(id) {
  return request({
    url: '/admin/sysMch/getInfo',
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/admin/sysMch/update',
    method: 'post',
    data: data
  })
}

export function addOrUpdateMchMenu(params, menus) {
  return request({
    url: '/admin/sysMch/addOrUpdateMchMenu',
    method: 'post',
    data: menus,
    params: params
  })
}

export function getMenus(params) {
  return request({
    url: '/admin/sysMch/getMenus',
    method: 'post',
    params: params
  })
}

export function initData() {
  return request({
    url: '/admin/sysMch/initData',
    method: 'post'
  })
}

export function getMenuTree(params) {
  return request({
    url: '/admin/sysMch/getMenuTree',
    method: 'get',
    params: params
  })
}

export function initISVData(params) {
  return request({
    url: '/admin/enterprise/initISVData',
    method: 'post',
    params: params
  })
}



